﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.Paint.PaintDuringSimulation.CCoPaintDuringSimulationThicknessCmd
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using Tecnomatix.Engineering;
using Tecnomatix.Engineering.Ui;


namespace DnProcessSimulateCommands.Paint.PaintDuringSimulation;

internal class CCoPaintDuringSimulationThicknessCmd : CCoPaintDuringSimulationCmd
{
  public override string Tooltip => DnProcessSimulateCommands.Paint.PaintDuringSimulation.Resources.StringTable.PAINT_DURING_SIMULATION_THICKNESS_CMD_TOOLTIP;

  public override string Description
  {
    get => DnProcessSimulateCommands.Paint.PaintDuringSimulation.Resources.StringTable.PAINT_DURING_SIMULATION_THICKNESS_CMD_DESCRIPTION;
  }

  public override string Name => DnProcessSimulateCommands.Paint.PaintDuringSimulation.Resources.StringTable.PAINT_DURING_SIMULATION_THICKNESS_CMD_NAME;

  public override string Bitmap
  {
    get => "Paint.PaintDuringSimulation.Resources.PaintDuringSimulationThickness.bmp";
  }

  public override string LargeBitmap
  {
    get => "Paint.PaintDuringSimulation.Resources.PaintDuringSimulationThickness_BIG.png";
  }

  public override ITxImage Image
  {
    get => (ITxImage) TxImageManager.GetImageByKey("ThicknessDuringSimulation");
  }

  public override bool Push
  {
    get
    {
      return CApPaintDuringSimulationManager.Instance.UsePaintThickness && CApPaintDuringSimulationManager.Instance.IsDocumentLoaded;
    }
  }

  internal override void SetPaintDuringSimulationMode()
  {
    CApPaintDuringSimulationManager.Instance.UsePaintThickness = true;
    base.SetPaintDuringSimulationMode();
  }
}
